import service from "@/utils/service.js"
import { reject, resolve } from "core-js/fn/promise"
let getlink = (url,method="get")=>{
    service.request({
        url,
        method,
    }).then((ok)=>{
        resolve(ok)
    }).catch((err)=>{
        reject(err)
    })
}